package com.ug_project.spring_dict.Controllers

import io.ktor.application.Application
import io.ktor.application.install
import io.ktor.content.default
import io.ktor.content.files
import io.ktor.content.static
import io.ktor.response.respondRedirect
import io.ktor.routing.get
import io.ktor.routing.routing

fun Application.uiModule() {
    routing {
        static {
            files("UIContent")
        }
        get {
            context.respondRedirect("/index.html")
        }
    }
}
